<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" th:href="@{/favicon.ico}" type="image/x-icon"/>
<script type="text/javascript"
	th:src="@{/webjars/jquery/3.3.1/jquery.js}"></script>
<title>导出页面</title>
</head>
<body>
	<h1>下载页面</h1>
	<button id="btn1" th:attr="path=${signsummary}">下载会签单</button>
	<br />
	<br />
	<button id="btn2" th:attr="path=${qualifyword}">下载资格评定表</button>
	<br />
	<br />
	<button id="btn3" th:attr="path=${crewresume}">下载船员资历表</button>
	<br />
	<br />

</body>

<script th:inline="javascript">

	var context = [[@{/}]];      


	$("#btn1").click(function(){ 
		var $eleForm = $("<form method='get'></form>"); 
		$eleForm.attr("action",[[${#httpServletRequest.getContextPath()}]]+"/download/"+$(this).attr("path"));
		$(document.body).append($eleForm); 
		//提交表单，实现下载 
		$eleForm.submit();
	 });
	
	
	$("#btn2").click(function(){
		var $eleForm = $("	<form method='get'></form>");
		$eleForm.attr("action",[[${#httpServletRequest.getContextPath()}]]+"/download/"+$(this).attr("path"));
		$(document.body).append($eleForm); 
		//提交表单，实现下载
		$eleForm.submit(); 
	});
	
	
	$("#btn3").click(function(){
		var $eleForm = $("<form method='get'></form>");
		$eleForm.attr("action",[[${#httpServletRequest.getContextPath()}]]+"/download/"+$(this).attr("path"));
		$(document.body).append($eleForm); 
		//提交表单，实现下载
		$eleForm.submit();
	});
	
</script>
</html>